package com.twu.biblioteca.model.item.movies;

import com.twu.biblioteca.model.item.movies.exceptions.InvalidRatingException;
import com.twu.biblioteca.model.item.Item;

/**
 * Created with IntelliJ IDEA.
 * User: cschlumb
 * Date: 08/08/2013
 * Time: 17:14
 * To change this template use File | Settings | File Templates.
 */
public class Movie extends Item{

    private final int year;
    private final String director;
    private final Rating rating;

    public Movie(String title, int year, String director, Rating rating) throws InvalidRatingException {
        super(title);
        this.year = year;
        this.director = director;
        this.rating = rating;
    }

    public int getYear() {
        return year;
    }

    public String getDirector() {
        return director;
    }

    public Rating getRating() {
        return rating;
    }
}
